package com.lft.linked.list01.single_linked_list;

import java.util.Stack;

/**
 * Function: 		ADD FUNCTION.
 * Reason:   		ADD REASON.
 * Date:            2020-10-03 11:35
 * <p>
 * Class Name:      StackTest
 * Package Name:    com.lft.linked.list
 * @author Laifengting / E-mail:laifengting@foxmail.com
 * @version 1.0.0
 * @since JDK 8
 */
public class StackTest {
	public static void main(String[] args) {
		Stack<Object> stack = new Stack<>();
		stack.push("jack");
		stack.push("tom");
		stack.push("smith");
		stack.add("helen");
		stack.add("lily");
		int size = stack.size();
		for (int i = 0; i < size; i++) {
			System.out.println(stack.pop());
		}
		
	}
}
